import '../http_config.dart';

// 解析 返回是 对象
/*

   约定返回格式
{
"code": 10000,
"msg": "success",
"data": { }
}

*/


class BaseEntity {
  var code;
  var message;

  BaseEntity({this.code, this.message});

  factory BaseEntity.fromJson(json) {
    return BaseEntity(
      code: json[HttpConfig.code],
      message: json[HttpConfig.msg],
    );
  }
}
